home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / iptables.postinst < prev    next >
Encoding:
Text File  |  2009-03-18  |  833 b   |  24 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installdocs
  4. if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
  5.     install-docs -i /usr/share/doc-base/packet-filter
  6. fi
  7. # End automatically added section
  8. # Automatically added by dh_installdocs
  9. if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
  10.     install-docs -i /usr/share/doc-base/nat
  11. fi
  12. # End automatically added section
  13. # Automatically added by dh_installmodules
  14. if [ "$1" = "configure" ]; then
  15.     if [ -e "/etc/modprobe.d/iptables" ]; then
  16.         echo "Preserving user changes to /etc/modprobe.d/iptables.conf ..."
  17.         if [ -e "/etc/modprobe.d/iptables.conf" ]; then
  18.             mv -f "/etc/modprobe.d/iptables.conf" "/etc/modprobe.d/iptables.conf.dpkg-new"
  19.         fi
  20.         mv -f "/etc/modprobe.d/iptables" "/etc/modprobe.d/iptables.conf"
  21.     fi
  22. fi
  23. # End automatically added section
  24.